﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Runtime.Serialization;

namespace DataTier
{
    [DataContract(IsReference = true)]
    public class SubscriptionType
    {
        private int _id;
        private string _name;
        private string _description;
        private double _price;
        private double _setupCost;

        #region Constructors

        public SubscriptionType(string name, string desc, double price, double setupCost)
        {
            this._name = name;
            this._description = desc;
            this._price = price;
            this._setupCost = setupCost;
        }

        public SubscriptionType(string name)
        {
            this._name = name;
        }

        public SubscriptionType(int id)
        {
            this._id = id;
        }

        #endregion

        #region Properties

        [DataMember]
        public int Id
        {
            get { return _id; }
            set { _id = value; }
        }

        [DataMember]
        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        [DataMember]
        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        [DataMember]
        public double Price
        {
            get { return _price; }
            set { _price = value; }
        }

        [DataMember]
        public double SetupCost
        {
            get { return _setupCost; }
            set { _setupCost = value; }
        }

        #endregion
    }
}
